/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.entity.Teacher;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.sql.Blob;
import java.util.Map;

/**
 * <p>Project: mybatis2021 - TeacherMapper
 * <p>Powered by webrx On 2021-07-13 17:17:52
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 15
 */
public interface TeacherMapper {
    @Insert("insert into teacher value(uuid(),#{name},#{pic},#{remark})")
    public int save(Teacher teacher);

    @Select("select pic from teacher where id = #{id}")
    public Map<String,byte[]> pic(String id);
}
